package com.hhu.wangzb.server.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hhu.wangzb.common.utils.PageUtils;
import com.hhu.wangzb.common.utils.Query;

import com.hhu.wangzb.server.dao.InverterDao;
import com.hhu.wangzb.common.entity.InverterEntity;
import com.hhu.wangzb.server.service.InverterService;


@Service("inverterService")
public class InverterServiceImpl extends ServiceImpl<InverterDao, InverterEntity> implements InverterService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<InverterEntity> page = this.page(
                new Query<InverterEntity>().getPage(params),
                new QueryWrapper<InverterEntity>()
        );

        return new PageUtils(page);
    }

}